package priv.stones.multi_thread.callable;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;

/**
 * @Author: Stones
 * @Description:
 * @Date: 2017/9/20 16:25
 */
public class Main1 {

    public static void main(String[] args) throws ExecutionException, InterruptedException {
        Callable1 mythread = new Callable1();
        FutureTask<String> futureTask = new FutureTask<String>(mythread);
        new Thread(futureTask, "111").start();
        System.out.println(futureTask.get());
    }

}
